package com.cloudpan.entity.bo;

import com.cloudpan.common.annotate.PasswordVaild;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @Author sc
 * @DATE 2023/10/28 18:09
 * @Description:
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUserInfoBo对象", description="用户登陆信息表")
public class SysUserInfoBo {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "学号或教师id")
    @NotBlank(message = "学号或教师id不能为空")
    private String numberId;

    @ApiModelProperty(value = "用户昵称")
    @NotBlank(message = "用户昵称不能为空")
    private String nickName;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "用户邮箱")
    @NotBlank(message = "用户邮箱不能为空")
    private String email;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    @PasswordVaild
    private String password;

    @ApiModelProperty(value = "再次输入密码")
    @NotBlank(message = "密码不能为空")
    @PasswordVaild
    private String passwordTwo;

    @ApiModelProperty(value = "验证码")
    private String code;

}
